/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.eng.scc.core.parts;

import com.eng.scc.core.util.ImageFinder;
import javax.swing.AbstractAction;

/**
 *
 * @author Rafael
 */
public abstract class AbstractApplicationAction extends AbstractAction
{
    private String name = "";
    private String img = "";
    private String toolTip = "";

    public AbstractApplicationAction()
    {
    }

    public AbstractApplicationAction( String name, String img, String tooltip )
    {
        super( name, ImageFinder.getImageIcon( img ) );
        
        this.name = name;
        this.img = img;
        this.toolTip = tooltip;
    }
    
    public AbstractApplicationAction( String name, String img )
    {
        this( name, img, "" );
    }
    
    @Override
    public String toString()
    {
        return "AbstractApplicationAction{" + "name=" + name + ", img=" + img + ", toolTip=" + toolTip + '}';
    }

    public String getName()
    {
        return name;
    }

    public void setName( String name )
    {
        this.name = name;
    }

    public String getImg()
    {
        return img;
    }

    public void setImg( String img )
    {
        this.img = img;
    }

    public String getToolTip()
    {
        return toolTip;
    }

    public void setToolTip( String toolTip )
    {
        this.toolTip = toolTip;
    }
}
